package com.ekin.attendance.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Ekin
 * 2021/12/14
 * 请假分页VO
 */
@Schema(description = "请假分页对象")
@Data
public class LeavePageVO {
    @Schema(description = "请假单ID")
    private Long id;

    @Schema(description = "请假单单号")
    private String applyerNumber;

    @Schema(description = "请假类型")
    private String leaveStyle;

    @Schema(description="部门名称")
    private String deptName;

    @Schema(description = "请假原因")
    private String leaveReason;

    @Schema(description = "请假人姓名")
    private String applyer;

    @Schema(description = "请假人工号")
    private String applyerId;

    @Schema(description = "请假总天数")
    private String leaveDays;

    @Schema(description = "请假开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;

    @Schema(description = "请假结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;

    @Schema(description = "请假单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @Schema(description = "请假状态")
    private Integer status;

}
